﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Foothill.Master" AutoEventWireup="true" 
    CodeBehind="EditPost.aspx.cs" Inherits="Foothill.Web.EditPostCodeBehind" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="edit.css" type="text/css"  />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph1" runat="server">
    
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    
    <div id="edit-post">    
        <asp:Panel ID="pnlEditPost" runat="server">
            <div>
                <asp:Label ID="lblVehicleType" runat="server" CssClass="lblVehicleType" />
                <div id="btnTakeOffline-div">                       
                    <asp:LinkButton ID="btnTakeOffline" runat="server" Text="撤销广告" OnClick="TakeOfflineClick" meta:resourcekey="btnTakeOffline" />    
                </div>
            </div>

            <div>
                <asp:Image ID="imgProfile" runat="server" CssClass="imgProfile" />   
            </div>

            <table class="tbl-edit-ad">
                <tr>
                    <td class="td-ad-detail">
                        <asp:Label ID="lblPrice" runat="server" Text="价格:" CssClass="lblPrice" />  
                    </td>
                </tr>              
                <tr>
                    <td class="td-ad-detail">
                        <asp:Label ID="lblCityLabel" runat="server" Text="城市:" CssClass="lblLabel" /> 
                        <asp:Label ID="lblCity" runat="server" />     
                    </td>  
                    <td class="td-ad-detail">
                        <asp:Label ID="lblPostDateLabel" runat="server" Text="发布时间:" CssClass="lblPostDateLabel lblLabel" /> 
                        <asp:Label ID="lblPostDate" runat="server" />  
                    </td>  
                </tr>
                <tr>
                    <td class="td-ad-detail">
                        <asp:Label ID="lblPhoneLabel" runat="server" Text="电话:" CssClass="lblLabel" />
                        <asp:Label ID="lblPhone" runat="server" /> 
                    </td> 
                    <td class="td-ad-detail">
                        <asp:Label ID="lblEmailLabel" runat="server" Text="Email:" />
                        <asp:Label ID="lblEmail" runat="server" /> 
                    </td>   
                </tr>
            </table> 
            
            <div>
                <asp:Panel ID="pnlUpdate" runat="server" CssClass="pnlUpdate">
                    <asp:Label ID="LocUpdatePrice" runat="server" meta:resourcekey="LocUpdatePrice" CssClass="lblLabel" />
                    <asp:TextBox ID="txtUpdatePrice" runat="server" CssClass="txtUpdatePrice"/>
                    <div id="btnUpdatePrice-div">
                        <asp:LinkButton ID="btnUpdatePrice" runat="server" Text="提交" OnClick="btnUpdatePrice_Click" />
                    </div>
                    <asp:Label ID="lblUpdatePriceFeedback" runat="server" /> 
                </asp:Panel>   
            </div>

            <div id="take-off-div">    
                <asp:Label ID="lblUpdateHistory" runat="server" CssClass="lblUpdateHistory" />
                <ajaxToolkit:ConfirmButtonExtender ID="cbe1" runat="server" TargetControlID="btnTakeOffline" meta:resourcekey="ConfirmTakeOffline" />    
            </div>
               
        </asp:Panel>
        
        <asp:Panel ID="pnlLoginError" runat="server">
            <div>
                <asp:Label ID="lblLoginError" runat="server" />
                <asp:LinkButton ID="btnTryAgain" runat="server" Text="重试" OnClick="btnTryAgain_Click" />
            </div>
        </asp:Panel>
    </div>
</asp:Content>
